package cn.tedu.service;


import cn.tedu.dao.CarDao;
import cn.tedu.pojo.Car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

//CarService的实现类
@Service//交给spring容器ioc
public class CarServiceImpl implements CarService {
    @Autowired
    private CarDao carDao;//service层调用了dao层
    @Override
    public Car get() {
        //调用了Dao层的代码
        return carDao.get();
    }
}
